<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 4.01 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<%@ page language="java" pageEncoding="UTF-8"%>
<%@ include file="/pages/safeai/jsp/common/taglibs.jsp"%>
<html>
<head>
<title>分类管理</title>
<script type="text/javascript" src="${ctx}/script/common.js"></script>
<script language="javascript" type="text/javascript" src="${ctx}/script/Date/WdatePicker.js"></script>
<%@ include file="/pages/safeai/jsp/common/meta.jsp"%>
<link href="${ctx}/css/safeai/together.css" rel="stylesheet" type="text/css">
</head>
<body>
<form action="${ctx}/advertising/clickNum.do?method=searchAdvertisingClickNumlist" method="post">
	<table align="center" width="600px">
		<tr>
			<td class="td_01">广告查询：</td>
			<td class="td_03">起始日期：
			<input class="Wdate" id="startDate" name="startDate" type="text"
							onfocus="new WdatePicker(this,'%Y-%M-%D',false)"
							maxdate="#F{$('endDate').value}" value="${startDate}"
							onpicked="$('endDate').onfocus()" readonly="readonly" />
			</td>
			<td class="td_03">结束日期：
			<input class="Wdate" id="endDate" name="endDate" type="text"
							onfocus="new WdatePicker(this,'%Y-%M-%D',false)"
							MINDATE="#F{$('startDate').value}" value="${endDate}"
							readonly="readonly" />
			</td>
			<td class="td_01"><input type="submit" class="btn" value="查询"/></td>
		</tr>
	</table>
</form>
	<table align="center" width="600px">
		<tr>
			<th class="td_01" height="25px">名称</th><th class="td_01">英文名</th><th class="td_01">点击量</th><th class="td_01">时间</th>
		</tr>
		<logic:present name="list">
			<logic:iterate id="clickNum" name="list">
				<tr>
					<td class="td_03">${clickNum.adname}</td><td class="td_03">${clickNum.enname}</td><td class="td_03">${clickNum.sumnum}</td>
					
					<c:if test="${startDate==null && endDate==null}">
						<td class="td_03">最近一周</td>
					</c:if>
					<c:if test="${startDate!=null or endDate!=null}">
						<td class="td_03">${startDate}-${endDate}</td>
					</c:if>
				</tr>
			</logic:iterate>
		</logic:present>
	</table>
</body>
</html>
